package _1;

public class User {
	private long userid;
	private String username;
	private String truename;
	private String email;
	private String phone;
	private String address;
	private String postcode;
	private String passwd;
	private int grade;

	public long getUserid() {
		return userid;
	}

	public void setUserid(long userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getTruename() {
		return truename;
	}

	public void setTruename(String truename) {
		this.truename = truename;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public User(long userid, String username, String truename, String email, String phone, String address,
			String postcode, String passwd, int grade) {
		super();
		this.userid = userid;
		this.username = username;
		this.truename = truename;
		this.email = email;
		this.phone = phone;
		this.address = address;
		this.postcode = postcode;
		this.passwd = passwd;
		this.grade = grade;
	}

	public User() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return userid + "\t" + username + "\t" + truename + "\t" + email + "\t" + phone + "\t" + address + "\t"
				+ postcode + "\t" + passwd + "\t" + grade;
	}
}
